package entity;

import entity.annotation.Manytoone;
import entity.annotation.Table;

@Table(name = "tb_registration")
public class Registration {

	public Integer getGrades() {
		return grades;
	}

	public void setGrades(Integer grades) {
		this.grades = grades;
	}

	private Integer grades;
	
	@Manytoone(mapby="tb_student",id="sid",fk="sid")
	private Student student;
	@Manytoone(mapby="tb_course",id="cid",fk="cid")
	private Course course;
	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}
	
}
